package pri.damai.xiaowu.usercenter.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import pri.damai.xiaowu.common.core.enums.base.IntegerEnumerator;

/**
 *
 * @Desc
 * @Author DaMai
 * @Date 2022/3/22 18:06
 * 但行好事，莫问前程。
 */
@Getter
@AllArgsConstructor
public enum ResourceTypeEnum implements IntegerEnumerator {

    SYS(0, "系统"),
    MENU(1, "菜单"),
    URL(2, "接口"),
    ;
    private final Integer code;
    private final String desc;

    @Override
    public Integer code() {
        return code;
    }

    @Override
    public String desc() {
        return desc;
    }
}
